package com.ophiux.alipay.db;

import java.util.HashMap;
import java.util.Map;

public class Mch_App_Map {
	public static Map Mch_App_Map = new HashMap();

	static {
		MchAppModel mch = new MchAppModel();
		mch.setMch_id("1379683702");
		mch.setAppid("wx35a390b81ab01ba6");
		mch.setAppsecret("1a887a76d217590af047086c8201bc6d");
		mch.setApi_key("sxsdermyy120sxsdermyy120sxsdermy");
		Mch_App_Map.put(mch.getMch_id(), mch);

		MchAppModel mch1 = new MchAppModel();
		mch1.setMch_id("1248213501");
		mch1.setAppid("wx45590898cc1c8671");
		mch1.setAppsecret("bc64eadf12de0e34c1f72b26d70a95dc");
		mch1.setApi_key("chongqingshiqjrmhospital48621113");
		Mch_App_Map.put(mch.getMch_id(), mch1);

		MchAppModel mch2 = new MchAppModel();
		mch2.setMch_id("1453527302");
		mch2.setAppid("wx394240ecef75c40a");
		mch2.setAppsecret("a9a0c98f95481a52668cfe4424b93633");
		mch2.setApi_key("2017OPHIUXabcophiux123456XUIHPO1");
		Mch_App_Map.put(mch.getMch_id(), mch2);

		MchAppModel mch3 = new MchAppModel();
		mch3.setMch_id("1445739102");
		mch3.setAppid("wx0a1cb2ca061029b6");
		mch3.setAppsecret("33a07561dace617a6df18e7564b76f06");
		mch3.setApi_key("ABCDabcd12345678ABCDabcd12345678");
		Mch_App_Map.put(mch.getMch_id(), mch3);

		MchAppModel mch4 = new MchAppModel();
		mch4.setMch_id("1459004202");
		mch4.setAppid("wx134763882046c953");
		mch4.setAppsecret("11385b49f6349cea56c792d4a1f0c642");
		mch4.setApi_key("CqsZyyXXK67063915Nqs67701944DmkY");
		Mch_App_Map.put(mch.getMch_id(), mch4);
	}

	public static MchAppModel getMchAppModelByMchId(String mch_id) {
		MchAppModel mchModel = null;
		try {
			mchModel = (MchAppModel) Mch_App_Map.get(mch_id);
		} catch (Exception e) {
			e.printStackTrace();
		}

		return mchModel;
	}
}